package com.base.self.dto.commodity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class CommodityWebDeleteDTO implements Serializable {

    @ApiModelProperty(value = "ID自增长（商品编号）")
    @NotNull(message = "商品编号不能为空")
    private Integer id;

    @ApiModelProperty(value = "是否删除")
    @NotNull(message = "0.上架 1.下架")
    private Integer isDel;
}
